#ifndef WIDGET_MAIN_H
#define WIDGET_MAIN_H



#include "gui.h"



/** @brief Gui class with main menu
*
*   \image html widget_main.jpeg
*/
class main_widget: public QWidget
{

	Q_OBJECT

public:

	/** @brief Creates part of the gui
	*	@param parent Qt parent
	*	@param flags Qt flags
	*/
	main_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	

private:

	//! widget layout
	QVBoxLayout* layout;

	//! start button
	QPushButton* start_b;
	//! about Qt button
	QPushButton* about_qt_b;
	//! about button
	QPushButton* about_b;
	//! exit button
	QPushButton* exit_b;


private slots:

	//! @brief Qt slot that starts server
	void start_server();
	//! @brief Qt slot that shows about Qt window
	void about_qt();
	//! @brief Qt slot that shows about window
	void about();
	//! @brief Qt slot that quits the application
	void exit();

};



/** @brief Gui class with about window
*
*   \image html widget_main.jpeg
*/
class about_widget: public QMessageBox
{

public:

	/** @brief Creates about widget
	*	@param parent Qt parent
	*/
	about_widget( QWidget* parent = 0 );
};



#endif